package com.snail.service;

import com.snail.common.DeleteRequest;
import com.snail.model.pojo.BizPost;
import com.baomidou.mybatisplus.extension.service.IService;
import com.snail.model.vo.BizPostPageListVo;
import com.snail.response.BaseResponse;
import com.snail.response.PageResponse;

/**
 * @author Monica
 * @description 针对表【biz_post(帖子表)】的数据库操作Service
 * @createDate 2025-07-25 17:03:04
 */
public interface BizPostService extends IService<BizPost> {

    PageResponse<BizPost> getAuditedPostPageList(BizPostPageListVo pageListVo);

    PageResponse<BizPost> getUnauditedPostPageList(BizPostPageListVo pageListVo);

    BaseResponse delete(DeleteRequest request);

    BaseResponse edit(BizPost bizPost);

    BaseResponse publish(BizPost bizPost);

    /**
     * 审核帖子
     *
     * @param teamId 团队ID
     * @param userId 用户ID
     * @param id     帖子ID
     * @param status 审核状态  帖子状态：0-草稿；1-已发布；2-审核中；3-已下架；4-被删除
     * @return
     */
    Boolean reviewPost(Long teamId, Long userId, Long id, Integer status);
}
